package com.yupi.springbootinit.model.dto.department;

import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serializable;

/**
 * 更新部门请求
 */
@Data
public class DepartmentUpdateRequest implements Serializable {

    /**
     * id
     */
    @NotNull(message = "部门id不能为空")
    private Long id;

    /**
     * 部门名称
     */
    @Size(max = 256, message = "部门名称长度不能超过256个字符")
    private String departmentName;

    /**
     * 部门编号
     */
    @Size(max = 128, message = "部门编号长度不能超过128个字符")
    private String departmentCode;

    private static final long serialVersionUID = 1L;
}